package com.insurance.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
//Accessors(chain = true)注解使当get和set成功之后有返回值，且返回值为true
@Accessors(chain = true)
public class CommentVo {
    private Long id;
    //文章id
    private Long productId;
    //根评论id
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private Long toCommentUserId;
    //所回复的目标评论的用户名
    private String toCommentUserName;
    //回复目标评论id
    private Long toCommentId;
    //评论人id
    private Long createBy;
    private Date createTime;
    //评论人用户名
    private String username;
    private List<CommentVo> children;

}
